package com.ruoyi.gis.service;

import com.ruoyi.gis.domain.*;
import com.ruoyi.gis.mapper.YcDataMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeviceDataService {
    @Autowired
    private YcDataMapper ycDataMapper;

    public List<YcclData> selectDataListByDevice(String deviceCode) {
        return ycDataMapper.selectDataListByDevice(deviceCode);
    }

    public List<YcDeviceTrType> listTrjcDataType(String deviceCode) {
        return ycDataMapper.listTrjcDataType(deviceCode);
    }

    public List<YcDeviceTrData> selectTrDataListByDevice(String deviceCode,String varName) {
        return ycDataMapper.selectTrDataListByDevice(deviceCode,varName);
    }

    public List<YcDeviceQxData> listQxData(String deviceCode) {
        return ycDataMapper.selectQxData(deviceCode);
    }
}
